package com.winit.common.servlet;

import org.springframework.web.context.ContextLoaderListener;

import javax.servlet.ServletContextEvent;

/**
 * Created by keel2008 on 16/9/26.
 */
public class BeetleListener  extends ContextLoaderListener {

    @Override
    public void contextInitialized(ServletContextEvent event)  {
        try {
            super.contextInitialized(event);
        } catch (Exception e) {
            e.printStackTrace();
            System.out.println("=================Beetle 启动过程中发生异常! 应用退出!=============================");
            System.exit(1);
        }

        System.out.println("=================success=============================");

    }
}
